In here are the list of things I did for a particular hour or day. Also included here are the screenshots of games I played, or videos I watched or listened to, or just random things I stumbled upon. I'll occasionally write down what I'm thinking, or things I'm planning to do.
https://news.ycombinator.com/item?id=39511714 I should add some /now on my shitty personal site as well. Not sure about /ideas though, I sure don't have shortage of them, but they are mostly dumb or uninteresting.
I've been wondering too if I should submit my site to aboutideasnow.com, kagi or marginalia. I don't really have any interesting content though. Maybe some time in the future.
So I noticed that the posts have non-deterministing sorting. I thought, fuck concurrency, I'll just do it without any goroutines, it'll be one http request at a time.
I tried rewriting it, and the code certainly looked simpler. But, it's so, slow. The heck, I thought it would only be a little bit slower, but no, it's about ten times slower on some HN threads.
I undid the rewrite, and just used a map to sort posts by insert order.
Seeing my changes also takes a couple of seconds, so I added some caching to filesystem too, to prevent execessive requests while testing.
I more or less now have a working basic HN frontend. I think I'll make the UI linear like lainchan/4chan, instead of the usual tree view like reddit and HN. Neovim's lspconfig with gopls is giving me some error though, pretty annoying, not even sure how to fix this.
Wrote some code to handle concurrent http requests. It's never easy to write multi-threaded code, as I'm never sure if there's no deadlock lurking somewhere, or some unexpected race condition will happen. For now, it's working as expected, and it "looks" correct.
I reviewed the notations for derivatives and differentials. I understand it now, but somehow I don't feel all too comfortable with it, maybe it's the concept or the notation. Perhaps I could think of an alternative notation for expressing differentials and derivatives, preferrably something close to a programming language syntax.
Next time I'll be reading the rules for differentiating rational terms. These rules are what are usually taught in schools to be rote memorized I think.
site last updated on 2024-10-16 | created with moontpl